//
//  ZTableViewCell.m
//  WeClubs
//
//  Created by Zed Link on 10/4/2017.
//  Copyright © 2017 Zed. All rights reserved.
//

#import "ZTableViewCell.h"
#import "UIColor+ZUtilities.h"

@implementation ZTableViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        [self zSetupCell];
    }
    return self;
}

- (void)awakeFromNib
{
    [super awakeFromNib];
    
    [self zSetupCell];
}

- (void)zSetupCell;
{
    self.translatesAutoresizingMaskIntoConstraints = NO;
    self.backgroundColor = [UIColor clearColor];
    self.contentView.backgroundColor = [UIColor clearColor];
}

- (void)zShadowAndCornerDeal:(CGFloat)radius
{
    // 阴影与圆角处理
    self.clipsToBounds = NO;
    self.layer.cornerRadius = radius;
    self.layer.shadowColor = [UIColor zColorWithHex:134e61].CGColor;
    self.layer.shadowOffset = CGSizeMake(0, 4);
    self.layer.shadowOpacity = 0.10;
}

@end
